<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>WebGL PBR</title>
    <link rel="stylesheet" href="style.css">

    <script src="https://code.jquery.com/jquery-3.3.1.min.js"
      integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
      crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.2/dat.gui.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gl-matrix/2.7.1/gl-matrix-min.js"></script>

    <script type="text/javascript" src="./dist/lumagl.js"></script>

    <script src="loaders.js"></script>
    <script src="mesh.js"></script>
    <script src="scene.js"></script>
    <script src="controls.js"></script>
    <script src="main.js"></script>
</head>
<body onload="main()">
    <div id="error"></div>
    <canvas id="canvas" width="600" height="600">
        Please use a browser that supports "canvas"
    </canvas>
    <canvas id="canvas2d" width="600" height="600">
    </canvas>
    <a class="source" href="https://github.com/KhronosGroup/glTF-WebGL-PBR">source on GitHub</a>
    <div id="pbrMath">
        <div class="pbrMathSub" id="mathAll"><i>f</i>(<i>l</i>,<i>v</i>,<i>h</i>) = </div>
        <div class="pbrMathSub" id="mathDiff">Diff(l,n)</div> +
        <div class="pbrMathSub" id="mathSpec">
            <div class="reset" id="mathF">F(l,h)</div>
            <div class="reset" id="mathG">G(l,v,h)</div>
            <div class="reset" id="mathD">D(h)</div>
            <hr class="line">
            <div class="reset">4(n*l)(n*v)</div>
        </div>
    </div>
    <div id="inputs">
        <div class="note">Click or hover to isolate:</div>
        <div class="pbrMathSub" id="baseColor">base color</div><br>
        <div class="pbrMathSub" id="metallic">metallic</div><br>
        <div class="pbrMathSub" id="roughness">roughness</div>
    </div>

    <div class="pixelPicker">
        <span id="pixelPickerColor"></span>
        <span id="pixelPickerText"></span>
    </div>

    <div id="loadSpinner"></div>
</body>
</html>
